home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
omswitch.zip
/
SWITCH.C
< prev
next >
Wrap
Text File
|
1988-09-02
|
394b
|
20 lines
/*
** Display/change switch character
*/
char switchar();
main(argc,argv)
int argc;
char *argv[]; {
register char c;
if(argc<2)
printf("Switch character is now '%c'\n",switchar(0));
else if((c=*argv[1])<=' ')
printf("Illegal new switch character '%c'\n",c);
else {
printf("Switch character was '%c', ",switchar(0));
printf("is now '%c'\n",switchar(c));
}
}